package chapter01

import (
	"fmt"
)

func TestString() {

	var str string

	str = "Hello World"

	str2 := "你好"
	label := `Search results for "Golang":`
	fmt.Println(label)
	fmt.Println(str)
	fmt.Println(str2)
	ch := str[0]
	fmt.Printf("The length of \"%s\" is %d \n", str, len(str))
	fmt.Printf("The first character of \"%s\" is %c.\n", str, ch)
	results := `Search results for "Golang":
- Go
- Golang
Golang Programming
`

	fmt.Printf("%s", results)
}
